<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>订单信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
    <input type="hidden" name="tradeNo" value="$!{tradeNo}"/>
    <div class="layui-card">
        <div class="layui-card-header">订单基础信息
			<div style="float: right;">
				#if($payMoney > 0)
	            <button class="layui-btn layui-btn-sm layui-btn-fun" data-type="btnSynState">同步支付订单</button>
				#end
	            #if($supplyState == 1)
	            <button class="layui-btn layui-btn-sm layui-btn-fun" data-type="btnOrderConfirm">确认订单</button>
	            #end
	            #if($utils.isNull($goodsCode) && $classify == 1)
	            <button class="layui-btn layui-btn-sm layui-btn-fun" data-type="btnLogisticsConfirm">发货</button>
	            #end
	            <button class="layui-btn layui-btn-sm layui-btn-fun layui-btn-danger" data-type="btnRefund">退款</button>
			</div>
		</div>
        <div class="layui-card-body">
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付订单</label>
                            <div class="layui-form-mid layui-word-aux">$!{tradeNo}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">供货状态</label>
                            <div class="layui-form-mid layui-word-aux">$!{supplyStateName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-form-mid layui-word-aux">$!{stateName}</div>
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">业务类型</label>
                            <div class="layui-form-mid layui-word-aux">$!{businessTypeName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付类型</label>
                            <div class="layui-form-mid layui-word-aux">$!{payTypeName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品类型</label>
                            <div class="layui-form-mid layui-word-aux">$!{classifyName}</div>
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品名称</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsName}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品规格</label>
                            #if($goodsSpaceName)
                            <div class="layui-form-mid layui-word-aux">$!{goodsSpaceName}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux">--</div>
                            #end
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品单价</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">商品数量</label>
                            <div class="layui-form-mid layui-word-aux">$!{goodsCount}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">物流费用</label>
                            <div class="layui-form-mid layui-word-aux">$!{logisticsMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm3">
                        <div class="layui-form-item">
                            <label class="layui-form-label">订单总金额</label>
                            <div class="layui-form-mid layui-word-aux"><span class="layui-badge">$!{moneyStr}</span>元</div>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付金额</label>
                            <div class="layui-form-mid layui-word-aux">$!{payMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">钱包金额</label>
                            <div class="layui-form-mid layui-word-aux">$!{walletMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">积分</label>
                            <div class="layui-form-mid layui-word-aux">$!{virtualMoney}</div>
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">优惠金额</label>
                            <div class="layui-form-mid layui-word-aux">$!{couponMoneyStr}元</div>
                        </div>
                    </div>
                    <div class="layui-col-sm8">
                        <div class="layui-form-item">
                            <label class="layui-form-label">优惠信息</label>
                            #if($couponContent)
                            <div class="layui-form-mid layui-word-aux">$!{couponContent}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux">--</div>
                            #end
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">会员ID</label>
                            <div class="layui-form-mid layui-word-aux">$!{memberId}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">会员昵称</label>
                            <div class="layui-form-mid layui-word-aux">$!{memberNickname}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">会员手机号</label>
                            #if($memberPhone)
                            <div class="layui-form-mid layui-word-aux">$!{memberPhone}</div>
                            #else
                            <div class="layui-form-mid layui-word-aux">--</div>
                            #end
                        </div>
                    </div>
                </div><!-- /.layui-row -->
                <div class="layui-row">
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">最后修改时间</label>
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($updateDate,'yyyy-MM-dd HH:mm')}</div>
                        </div>
                    </div>
                    <div class="layui-col-sm4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">创建时间</label>
                            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm')}</div>
                        </div>
                    </div>
                </div><!-- /.layui-row -->
            </div>
        </div>
    </div><!-- /.layui-card -->
	#if($classify == 2)
	<div class="layui-card">
        <div class="layui-card-header">会员备注信息</div>
        <div class="layui-card-body">
			<div class="layui-row">
           		<div class="layui-col-sm6">
	               <div class="layui-form-item">
	                   <div class="layui-form-mid layui-word-aux">$!{note}</div>
	               </div>
           		</div>
			</div>
	    </div>
	</div>
	#else
    <div class="layui-card">
        <div class="layui-card-header">物流信息</div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货人</label>
                        <div class="layui-form-mid layui-word-aux">$!{receiveName}</div>
                    </div>
                </div>
                <div class="layui-col-sm3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货手机号</label>
                        <div class="layui-form-mid layui-word-aux">$!{receivePhone}</div>
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货地址</label>
                        <div class="layui-form-mid layui-word-aux">$!{receiveAddress}</div>
                    </div>
                </div>
            </div>
            #if($logisticsTradeNo)
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">物流公司</label>
                        <div class="layui-form-mid layui-word-aux">$!{logisticsCompany}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">物流单号</label>
                        <div class="layui-form-mid layui-word-aux">$!{logisticsTradeNo}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">发货时间</label>
                        <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($deliverGoodsDate,'yyyy-MM-dd HH:mm')}</div>
                    </div>
                </div>
            </div>
            #end
            #if($receiveGoodsDate)
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货类型</label>
                        <div class="layui-form-mid layui-word-aux">$!{receiveGoodsTypeName}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">收货时间</label>
                        <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($receiveGoodsDate,'yyyy-MM-dd HH:mm')}</div>
                    </div>
                </div>
            </div>
            #end
        </div>
    </div><!-- /.layui-card -->
	#end
    #if($payOrderList)
    <div class="layui-card">
        <div class="layui-card-header">订单支付信息</div>
        #foreach($item in $payOrderList)
        <div class="layui-card-body" style="border-top:1px solid #eee;">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付订单</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.tradeNo}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付类型</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.payTypeName} - $!{item.tradeTypeName}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付状态</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.payStatusName}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付账号</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.businessAccount}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付金额</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.payMoneyStr}元</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">实际支付金额</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.receiptMoneyStr}</div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">第三方订单号</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.externalTradeNo}</div>
                    </div>
                </div>
                #if($item.payerId)
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付者ID</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.payerId}</div>
                    </div>
                </div>
                #end
            </div>
            #if($item.notifyUrl)
            <div class="layui-row">
                <div class="layui-col-sm8">
                    <div class="layui-form-item">
                        <label class="layui-form-label">回调地址</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.notifyUrl}</div>
                    </div>
                </div>
            </div>
            #end
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付时间</label>
                        <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($item.createDate,'yyyy-MM-dd HH:mm')}</div>
                    </div>
                </div>
            </div>
        </div>
        #end
    </div><!-- /.layui-card -->
    #end
    #if($refundOrderList)
    <div class="layui-card">
        <div class="layui-card-header">订单退款信息</div>
        #foreach($item in $refundOrderList)
        <div class="layui-card-body" style="border-top:2px solid #FF5722;">
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">退款订单</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.tradeNo}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">退款金额</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.refundMoneyStr}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">退款状态</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.refundStatusName}</div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付类型</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.payTypeName}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">订单类型</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.tradeTypeName}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付订单</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.payTradeNo}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
            <div class="layui-row">
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">退款商户</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.businessAccount}</div>
                    </div>
                </div>
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">第三方订单号</label>
                        <div class="layui-form-mid layui-word-aux">$!{item.externalTradeNo}</div>
                    </div>
                </div>
                <div class="layui-col-sm4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">退款时间</label>
                        <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($item.createDate,'yyyy-MM-dd HH:mm')}</div>
                    </div>
                </div>
            </div><!-- /.layui-row -->
        </div>
        #end
    </div>
    #end
    <div class="layui-card">
        <div class="layui-card-header">操作记录</div>
        <div class="layui-card-content">
            <table id="LAY-table" lay-filter="LAY-table"></table>
        </div>
    </div><!-- /.layui-card -->
</div>
#parse('/footFiles.html')
<script>
layui.config({
    base: '$!{webRoot}/layuiadmin/' //静态资源所在路径
    ,webRoot:'$!{webRoot}'
}).extend({
    index: 'lib/index' //主入口模块
    ,goods_order_operate:'market/goods_order_operate'
}).use(['index','goods_order_operate']);
</script>
</body>
</html>